/* 手型 */
.curP {
  cursor: pointer;
}

// 菜单部分
.el-menu{

  .SubMenu.el-menu-item {
    height: 54px;
    line-height: 54px;
    padding: 0 17px !important;
    background-color: var(--menu-color);
  
    &.is-active {
      color: #fff;
      .menu-item{
        padding: 0 16px;
        background-color: var(--menu-active-color);
        border-radius: 8px;
      }
      
    }
  }

  .menu-item {
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    padding: 0 16px;

    :deep(.el-icon) {
      vertical-align: text-top;
      font-size: 24px;
    }

    &:hover {
      color: #fff;
      border-radius: 8px;
      background-color: var(--menu-active-color);
    }
  }
}

// 卡片部分
.box-card{
  height: 100%;
  overflow: auto;
  :deep(.el-card__header){
    padding: 16px 29px;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;

    .card-header{
      font-size: 18px;
      color: #414141;
      font-weight: bold;
      display: flex;
      justify-content: space-between;
    }
  }
  :deep(.el-card__body){
    padding-top: 0;
  }
}

// 公共搜索部分
.search-form{
  display: flex;
  .toobar-button{
    margin-right: 20px;
  }
  /** input框固定宽度 */
  :deep(.el-input) {
    width: 192px !important;
  }
  :deep(.el-input__suffix .el-icon) {
    font-size: 20px;
    font-weight: bold;
    color: var(--theme-color);
  }
}

// 表格部分
.table-data{
  /* 表格高度 */
  :deep(.el-table){
    height: calc(100vh - 300px);
  }
  /** 表头颜色 */
  :deep(.el-table th.el-table__cell){
    background-color: var(--bg-color);
  }
  /** 表格内图片样式 */
  .table-item-img{
    width: 200px;
  }
  .table-page{
    text-align: right;
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: end;
  }
}

// 表单部分
.add-form{
  :deep(.el-form-item){
    display: inherit;
  }
  :deep(.el-select){
    width: 100%;
  }
  :deep(.el-input){
    width: 100%;
  }
  :deep(.el-cascader){
    width: 100%;
  }
  :deep(.el-checkbox){
    display: block;
  }
}
.add-button{
  margin-top: 34px;
  :deep(.el-button){
    border-radius: 26px;
    padding: 0 40px;
  }
}

/* 图片加载失败 */
.image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--el-fill-color-light);
  color: var(--el-text-color-secondary);
  font-size: 30px;
}

/* 详情 */
.detail-item{
  margin-bottom: 16px;
  .detail-label{
    text-align: right;
  }
}

/* 弹窗标题 */
:deep(.el-dialog__title){
  font-weight: bold;
}

/* 弹窗按钮 */
.dialog-button{
  margin-top: 20px;
  text-align: center;
}

/* 树样式 */
.tree {
  :deep(.el-tree-node__expand-icon){/* 节点图标 */
    color: var(--theme-color);
    font-size: 16px;
  }
  :deep(.el-tree-node span, .el-tree-node__children .el-tree-node span){/* 节点文字 */
    color: #333333;
    font-size: 16px;
    font-weight: 400;
  }
  :deep(.el-tree-node.is-expanded > .el-tree-node__children){/* 子级外边距 */
    margin-top: 4px;
  }
  :deep(.el-tree-node__children .el-tree-node span){/* 子节点文字 */
    font-weight: 400;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.custom-tree-node {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
  .custom-tree-label{
    width: 50%;
    display: inline-block;
  }
}